<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<RMH.Entities.SupportPerson>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> Edit </asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<% if (Model.Id > 0) { %>
    <h2>Edit Support Person - <%= Html.Encode(Model.LastName) + ", " + Html.Encode(Model.FirstName)%></h2>
<% } else { %>
    <h2>Create Support Person</h2> 
<% } %>

    <%= Html.ValidationSummary("Edit was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) {%>   
        <%= Html.Hidden("Id", Model.Id) %>            
        <%Html.RenderPartial("_Person", Model); %>                        
        <%Html.RenderPartial("_Address", Model); %>
        <%Html.RenderPartial("_Vehicle", Model); %>                      
        <p><input type="submit" value="Save" /></p>        
    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

